CONFIG_FH_CHIP_NAME 	:= $(subst ",,$(CONFIG_FH_CHIP_NAME))
ifneq ($(CONFIG_ARCH_QM102V),y)
EXTRA_CFLAGS      	+= -Iarch/arm/mach-fh/$(CONFIG_FH_CHIP_NAME)
endif

obj-y	+= fullhan.o fh_common.o fh_chipid.o

ifeq ($(CONFIG_PM),y)
obj-y += pm.o
endif


PMU_SEP = 0
ifeq ($(CONFIG_ARCH_FH889X_FH8210),y)
PMU_SEP=y
endif
ifeq ($(CONFIG_ARCH_QM102V),y)
PMU_SEP=y
endif

ifeq ($(PMU_SEP),y)
obj-y += $(CONFIG_FH_CHIP_NAME)/
else
	ifneq ($(CONFIG_USE_OF),y)
		obj-y += $(CONFIG_FH_CHIP_NAME)/
		obj-y += pinctrl.o 
		ifeq ($(CONFIG_FH_CLK_V2),y)
			obj-y += clock_v2.o 
		else
			obj-y += clock.o 
		endif
	else
		ifeq ($(CONFIG_FH_DTS_USE_LEGACY_CLK),y)
			obj-y += $(CONFIG_FH_CHIP_NAME)/
			ifeq ($(CONFIG_FH_CLK_V2),y)
				obj-y += clock_v2.o 
			else
				obj-y += clock.o 
			endif
		endif
	endif
	ifeq ($(CONFIG_FH_PMU_V2),y)
		obj-y += pmuv2.o 
	else
		obj-y += pmu.o 
	endif
endif



obj-$(CONFIG_SMP)		+= platsmp.o
obj-$(CONFIG_ARM_FULLHAN_CPUIDLE)		+= cpuidle.o
